package Model;

/**
 * Superclass for customers, employees and suppliers
 */
public class Person {
	private int id;
	private String name;
	private String address;
	private String zip;
	private String phone;
	private String email;

	public Person() {}
	public Person(int id) { this.id = id; }
        public Person(String name, String address, String zip, String phone, String email)
	{
		this.name = name;
		this.address = address;
		this.zip = zip;
		this.phone = phone;
		this.email = email;
	}

	/**
	 * @return the id
	 */ public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */ public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */ public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */ public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the address
	 */ public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */ public void setAddress(String address) {
		this.address = address;
	}

	 public String getZip() {
		 return zip;
	 }

	 public void setZip(String zip) {
		 this.zip = zip;
	 }

	/**
	 * @return the phone
	 */ public String getPhone() {
		return phone;
	}

	/**
	 * @param phone the phone to set
	 */ public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the email
	 */ public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */ public void setEmail(String email) {
		this.email = email;
	}
	
}
